package cn.com.nes.site.controller.crm.opportunity.vo;

import cn.com.nes.site.entity.vo.BaseVO;
import cn.com.nes.site.service.crm.opportunity.bo.DelOpportunityFileBO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;
import org.springframework.beans.BeanUtils;

@ApiModel(value = "商机文件删除入参模型")
@Data
public class DelOpportunityFileVO extends BaseVO {
    @ApiModelProperty(value = "商机文件ID")
    @NotEmpty(message = "商机文件ID")
    private String opportunityFileUuid;

    public DelOpportunityFileBO convertToBo() {
        DelOpportunityFileBO bo = new DelOpportunityFileBO();
        BeanUtils.copyProperties(this, bo);
        return bo;
    }
}
